<?php 
	set_include_path ("/Applications/MAMP/htdocs/BullesDeMantes");
	include_once '../../administrator/connect_sql.php';
	include_once '../../BDAO/ParticipationDAO.php';
?>
<html>
<head>
</head>
<body>
<h1>Test Object Metier</h1>
<?php 
	try {
		$participation = new Participation();
		$participation->setFriday(0);
		$participation->setSaturday(1);
		$participation->setSunday(0);
		$participation->setId(1);
		$ar = ParticipationDAO::store($participation);
		echo 'store id : '.$ar->getId();
		
	} catch (Exception $e) {
    	echo 'Caught exception: ',  $e->getMessage(), "\n";
	}
?>

</body>
</html>